#coding=utf-8
import pytest
import os
import time
 
 
if __name__ == '__main__':   # pytest运行模式
    pytest.main()
    os.system("pytest -s -q --alluredir=./allure-report")
    os.system("allure generate ./allure-report/ -o ./allure-report/html/ --clean")
    time.sleep(5)
    os.system("allure open ./allure-report/html/")